package com.bean;

/**
 * @author: chenhs
 * @date: Created in 10:54 2022/1/21
 **/
public class Student {
    private String name;
    private int age;
    private int height;

    public int getNameSize(){
        return this.getName().length();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }


    public Student(String name, int age, int high) {
        this.name = name;
        this.age = age;
        this.height = high;
    }


    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                '}';
    }
}
